package com.ql.mangersystem.entity.po;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @TableName user
 */
@Data
@Builder
public class User implements Serializable {
    private Integer id;

    private String username;

    private String userAccount;

    private String password;

    private String name;

    private Integer gender;

    private String phone;

    private String email;

    private String address;

    private String avatar;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private Integer status;

    private Integer deleted;

    private static final long serialVersionUID = 1L;

}